<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:pom="http://www.pomodorotechnique.com/server">
	<xsl:param name="xsl-base" />
	<xsl:param name="username" />
	<xsl:template match="/pom:users">
		<xsl:processing-instruction name="xml-stylesheet">href="<xsl:value-of select="$xsl-base" />/user.xsl" type="text/xsl"</xsl:processing-instruction>
		<xsl:for-each select="pom:user[@id = $username]">
			<pom:user>
				<xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
				<xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
				<xsl:attribute name="pomodoro-length"><xsl:value-of select="@pomodoro-length" /></xsl:attribute>
				<xsl:attribute name="break-length"><xsl:value-of select="@break-length" /></xsl:attribute>
				<xsl:attribute name="regdate"><xsl:value-of select="@regdate" /></xsl:attribute>
			</pom:user>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>